// 药物信息接口
export interface MedicationInfo {
  dataType: number;
  dataId: number;
  drugName: string;
  usageMethod: string;
  doseQuantity: string;
  doseUnit: string;
  frequency: string;
  timing: string;
  startDate: string;
  treatment: string;
  notes: string;
}

// 档案评估信息接口
export interface ArchiveEvaluation {
  time: string;
  result: number;
}

// 档案基本信息接口
export interface ArchiveBasicInfo {
  userId: number;
  gender: string;
  birthDate: string;
  ethnicity: string;
  phone: string;
  idCard: string;
  emergencyContactName: string;
  emergencyContactPhone: string;
  emergencyContactAddress: string;
  education: string;
  occupation: string;
  maritalStatus: string;
  medicalInsurance: string;
  livingHistory: string;
  workHistory: string;
  archiveId: number;
  [key: string]: any;
}

// 档案健康信息接口
export interface ArchiveHealthInfo {
  currentIllness: string;
  pastIllness: string;
  familyHistory: string;
  currentSymptoms: string;
  allergyHistory: string;
  surgeryHistory: string;
  traumaHistory: string;
  medications: MedicationInfo[];
  archiveId: number;
  archiveHealthInfoId: number;
}

// 档案生活方式信息接口
export interface ArchiveLifestyleInfo {
  smokingStatus: string;
  dietHabits: string;
  drinkingStatus: string;
  exerciseStatus: number;
  archiveId: number;
  archiveLifestyleId: number;
}

// 健康档案详情数据接口
export interface HealthArchiveDetailData {
  createArchive: boolean;
  archiveId: number;
  userId: number;
  userName: string;
  riskLevel: string;
  healthCategory: string;
  updateDate: string;
  phi: string;
  archiveEvaluations: ArchiveEvaluation[];
  archiveBasicInfo: ArchiveBasicInfo;
  archiveHealthInfo: ArchiveHealthInfo;
  archiveLifestyleInfo: ArchiveLifestyleInfo;
}
